import Vue from 'vue';


let vm = new Vue({
  el: '#app',
  data() {
    return {
      title: '学生列表',
      classNum: 1,
      total: 2,
      teacher: ['张老师', '李老师'],
      info: {
        a: {
          c: 5
        },
        b: 2
      },
      students: [{
          id: 1,
          name: '小红'
        },
        {
          id: 2,
          name: '小明'
        },
      ]
    }
  }
});
// console.log(vm);
// vm.title = '学生列表2';
// console.log(vm.students[0].name);
vm.students[0].name = '李四';
console.log(vm);